//
//  BaseVC.m
//  TheProjectName
//
//  Created by 李劲成 on 16/5/19.
//  Copyright © 2016年 sunzhichao. All rights reserved.
//

#import "BaseVC.h"

@interface BaseVC ()

@property (nonatomic, strong)UIImage *m_backImage;

@end

@implementation BaseVC

- (void)dealloc{
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (instancetype)init{
    self = [super init];
    if (self) {
        // 背景
        [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(changeSkin:) name:@"changeSkin" object:nil];

    }
    return self;
}

- (void)changeSkin:(NSNotification *)nofi{

    self.view.layer.contents = (id)[MotiveManager shareMotiveManager].backImage.CGImage;
    self.locker.backgroundImage = [MotiveManager shareMotiveManager].backImage;
}

- (void)viewDidLoad{
    [super viewDidLoad];
    
    self.view.layer.contents = (id)[MotiveManager shareMotiveManager].backImage.CGImage;
       self.locker.backgroundImage = [MotiveManager shareMotiveManager].backImage;
}
@end
